<template>
    <div class="vcommand-son2">
        <div class="slot1">
            <slot :hobby="hobby"></slot>
        </div>
        <div class="slot2">
            <slot name="hob" :userMsg="userMsg"></slot>
        </div>
    </div>
</template>

<script>
export default {
    name: 'VcommandSon2', // Vcommand的子组件，用于演示v-slot指令
    data() {
        return {
            hobby: ['吃饭', '睡觉', '唱歌', '看电影'],
            userMsg: [
                {name: 'dilireba', age: 18},
                {name: '张三', age: 19},
                {name: '小明', age: 20}
            ]
        }
    }
}
</script>

<style>

</style>